import 'package:json_annotation/json_annotation.dart';

import 'community_video_model.dart';

part 'topic_detail_model.g.dart';


@JsonSerializable()
class TopicDetailModel extends Object {

  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'headerImage')
  String headerImage;

  @JsonKey(name: 'brief')
  String brief;

  @JsonKey(name: 'text')
  String text;

  @JsonKey(name: 'shareLink')
  String shareLink;

  @JsonKey(name: 'itemList')
  List<IssueList>? itemList;

  @JsonKey(name: 'count')
  int count;

  TopicDetailModel(this.id,this.headerImage,this.brief,this.text,this.itemList,this.shareLink,this.count,);

  factory TopicDetailModel.fromJson(Map<String, dynamic> srcJson) => _$TopicDetailModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$TopicDetailModelToJson(this);

}


